<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <form action="">
        <ul>
            <li>
                姓名:<input type="text" name="employeeName" th:value="${emp.employeeName}" >
            </li>
            <li>
                部门:
                <select name="departId">
                    <option th:each="d:${departs}" th:value="${d.id}"  th:selected="${d.departName eq emp.department.departName}" th:text="${d.departName}"></option>
                </select>
            </li>
        </ul>
    </form>
</body>
</html>